package org.example.learningplanassistant.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 旧物市场订单表
 * </p>
 *
 * @author gcbsh
 * @since 2025-03-25
 */
@Getter
@Setter
@TableName("orders")
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 旧物市场订单id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 购买用户id
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 商品id
     */
    @TableField("item_id")
    private Integer itemId;

    /**
     * 商家名字
     */
    @TableField("business_name")
    private Integer businessName;

    @TableField("item_name")
    private String itemName;

    /**
     * 价格
     */
    @TableField("price")
    private BigDecimal price;

    /**
     * 支付状态
     */
    @TableField("status")
    private String status;

    /**
     * 下单时间
     */
    @TableField("created_at")
    private LocalDateTime createdAt;
}
